<?php defined('SYSPATH') OR die('No direct access allowed.');

/**
 *
 * Module managment helper
 *
 */

class mmanager {

	static protected $modules = array();
	static protected $current_module;

	public function set_current($modname) {
		if (!in_array($modname, self::$modules))
			self::$modules[] = $modname;
		self::$current_module = $modname;
	}

	public function current() {
		return self::$current_module;
	}

}